function GetTodayDate() {
var today=new Date()
return today.getMonth()+1+"/"+today.getDate()+"/"+(today.getYear())
}

function GetTodayDateTime() {
var today=new Date()
return today.getMonth()+1+"/"+today.getDate()+"/"+(today.getYear())+"-"+(today.getHours())+":"+(today.getMinutes())
}

function GetMySQLTodayDateTime() {
data = new Date();
ora =data.getHours();
minuti=data.getMinutes();
secondi=data.getSeconds();
giorno = data.getDay();
mese = data.getMonth();
date= data.getDate();
year= data.getYear();
if(minuti< 10)minuti="0"+minuti;
if(secondi< 10)secondi="0"+secondi;
if(year<1900)year=year+1900;
if(ora<10)ora="0"+ora;

return year+"-"+mese+"-"+date+" "+ora+":"+minuti+":"+secondi;
}
